package com.chinadci.smartcommunitysystembackstage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * 社区公告
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@TableName("scs_notice")
@ApiModel(value="ScsFeedback对象", description="")
public class ScsNotice implements Serializable {
    @ApiModelProperty(value = "社区公告id")
    @TableId(value = "n_id", type = IdType.AUTO)
    private Integer nId;

    @TableField(value = "a_id")
    @ApiModelProperty(value = "管理员id")
    private Integer aId;

    @TableField(value = "n_title")
    @ApiModelProperty(value = "标题")
    private String nTitle;

    @TableField(value = "n_content")
    @ApiModelProperty(value = "内容")
    private String nContent;

    @TableField(value = "n_releasetime")
    @ApiModelProperty(value = "发布时间")
    private String nReleasetime;

    @TableField(exist = false)
    private List<ScsAdmin> admin;

    @TableField(exist = false)
    private String name;
}
